import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import '@/assets/them/index.css';

import axios from '@/util/axios/axios'
import API_URI from './util/API/ApiUtil';


Vue.config.productionTip = false
Vue.use(ElementUI);

Vue.prototype.$axios = axios
Vue.prototype.API_URI = API_URI

Vue.prototype.$success = function(mes){
  Vue.prototype.$message({
    message: mes,
    type: 'success'
  })
}

Vue.prototype.$error = function(mes){
  Vue.prototype.$message.error({
    message: mes,
    type: 'error'
  })
}

Vue.prototype.$warning = function(mes){
  Vue.prototype.$message.error({
    message: mes,
    type: 'warning'
  })
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
